package com.cl.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.InvocationTargetException;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * 教师
 * 数据库通用操作实体类（普通增删改查）
 */
@TableName("laoshi")
public class LaoshiEntity<T> implements Serializable {
    private static final long serialVersionUID = 1L;

    public LaoshiEntity() {
    }
    
    public LaoshiEntity(T t) {
        try {
            BeanUtils.copyProperties(this, t);
        } catch (IllegalAccessException | InvocationTargetException e) {
            e.printStackTrace();
        }
    }
    
    /**
     * 主键id
     */
    @TableId
    private Long id;
    
    /**
     * 工号
     */
    private String gonghao;
    
    /**
     * 密码
     */
    private String mima;
    
    /**
     * 教师姓名
     */
    private String laoshixingming;
    
    /**
     * 头像
     */
    private String touxiang;
    
    /**
     * 性别
     */
    private String xingbie;
    
    /**
     * 手机号
     */
    private String mobile;
    
    /**
     * 所属班级
     */
    private String banji;
    
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat
    private Date addtime;

    public Date getAddtime() {
        return addtime;
    }
    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    
    public String getGonghao() {
        return gonghao;
    }
    
    public void setGonghao(String gonghao) {
        this.gonghao = gonghao;
    }
    
    public String getMima() {
        return mima;
    }
    
    public void setMima(String mima) {
        this.mima = mima;
    }
    
    public String getLaoshixingming() {
        return laoshixingming;
    }
    
    public void setLaoshixingming(String laoshixingming) {
        this.laoshixingming = laoshixingming;
    }
    
    public String getTouxiang() {
        return touxiang;
    }
    
    public void setTouxiang(String touxiang) {
        this.touxiang = touxiang;
    }
    
    public String getXingbie() {
        return xingbie;
    }
    
    public void setXingbie(String xingbie) {
        this.xingbie = xingbie;
    }
    
    public String getMobile() {
        return mobile;
    }
    
    public void setMobile(String mobile) {
        this.mobile = mobile;
    }
    
    public String getBanji() {
        return banji;
    }
    
    public void setBanji(String banji) {
        this.banji = banji;
    }
} 